
import * as USER from '../constants/userTypes';


const initailState = {

    identity :{
    },
    userInfo:{}
};

export default function userReducer(state = initailState, action) {
    switch (action.type) {
        case USER.LOGIN:
            return {
                ...state,
                identity: action.result.data
            };
        case USER.GET_USER_INFO:
            return {
                ...state,
                userInfo:action.result.data
            };
        default:
            return state;
    }
}